package win.ganbo.easyframwork.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import win.ganbo.easyframwork.service.IUserService;

import javax.servlet.http.HttpServletRequest;

/**
 * 系统首页
 */
@Controller
public class IndexController extends BaseController{


	@Autowired
	IUserService userservice;

	@GetMapping("/index")
	public String index(HttpServletRequest request){
		return "index";
	}

	@GetMapping("/welcom")
	public String frame(){
		return "welcom";
	}

	public void setPageInfo(String title, HttpServletRequest request) {
		System.out.println("被调用===============");
		request.setAttribute(PAGE_INFO,"系统运行信息");
	}
}
